package net.huashitong.config;

/**
 * 微信网页登录配置信息
 */
public class WebWeChatConfig {

    //华仕通教育公众号
//    public static final String APPID ="wxc61d36d0f65b608a";
//    public static final String APPSECRET ="6c21ce032374b2cc47a21e7a5e6b4c14";
//    public static final String REDIRECT_URI ="http://www.shenlun.com/wechat/after";
    //时事一点通服务号
    public static final String APPID ="wxdd4f44c8706d2d88";
    public static final String APPSECRET ="748ee0b17a2ed8978ed28a366e72ba4c";
    public static final String REDIRECT_URI ="http://web.ssydt.com/wechat/after"; //生产
//    public static final String REDIRECT_URI ="http://ssydt-test.natapp1.cc/wechat/after"; //测试
//    //测试号
//    public static final String APPID ="wx25e329224e4ecde3";
//    public static final String REDIRECT_URI ="http://gfdajs.natappfree.cc/wechat/after"; //生产
//    public static final String APPSECRET ="09b5c80aaf531a770a28cea248de86f7";

    /**
     * url信息
     */
    public interface Url{
        /**
         * 用户同意授权，获取code
         */
        String AUTHORIZE = "https://open.weixin.qq.com/connect/oauth2/authorize";

        /**
         * 通过code换取网页授权access_token
         */
        String ACCESS_TOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token";

        /**
         * 拉取用户信息(需scope为 snsapi_userinfo)
         */
//        String USERINFO = "https://api.weixin.qq.com/sns/userinfo";
        String USERINFO = "https://api.weixin.qq.com/cgi-bin/user/info"; //包括UnionID机制

    }
}
